package com.itcv.leetcode.low;

import java.util.ArrayList;
import java.util.List;

public class ListSteamTest {

    public static void main(String[] args) {
        List<Integer> integerList = new ArrayList<Integer>();

        for (int i = 0; i <100 ; i++) {
            integerList.add(i);
        }
        final List<Integer> parallelList = new ArrayList<Integer>();
        integerList.stream().filter(i->i%2==1).forEach(i->parallelList.add(i));

        System.out.println(parallelList.size());
        for (Integer i: parallelList
             ) {
            System.out.print(i+"\t\t");
        }



    }
}
